package demo;
//Day08
public class Day07001 {
    public static void main(String[] args) {
        Phone phone=new Phone();
        phone.setBrand("小米");
        phone.setColor("黑色");
        phone.setPrice(3998.00);
        phone.call();
        phone.sendMessage();
    }
}

//手机类
class Phone{
    private String brand;
    private Double price;
    private String color;

    public Phone(){

    }

    public Phone(String brand, Double price, String color) {
        this.brand = brand;
        this.price = price;
        this.color = color;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void call(){
        System.out.println("正在使用价格为"+this.price+"元"+this.color+"的"+this.brand+"手机打电话。。。");
    }
    public void sendMessage(){
        System.out.println("正在使用价格为"+this.price+"元"+this.color+"的"+this.brand+"手机发短信。。。");
    }
}
